<?php

class StkDeptTable extends Doctrine_Table
{

    public function getStkDeptQuery(Doctrine_Query $query = null) {

        if(is_null($query))
        {
            $query = $this->createQuery();
        }

        $query->addWhere("acct_set_id = ? ", sfContext::getInstance()->getUser()->getAttribute("acct_set"));

        return $query;
    }
}
